const CASHES: [u32; 8] = [1, 2, 5, 10, 20, 30, 50, 100];
pub fn dp_rec_mc(amount: u32) -> u32 {
    let mut amount = amount;
    let mut ans: u32 = 0;
    for cash in CASHES.iter().rev() {
        let n = amount / cash;
        amount -= n * cash;
        ans += n;
    }
    ans
}
